﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<CollegeWebsite.Models.Course>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>QuickInfo</h2>

<% var firstItem = Model.First(); %>
<div>
 <div>About Faculty</div>
    <% = firstItem.Department.Faculty.FacultyDesciption%>
    <div style="clear: both">About Department</div>
    <% = firstItem.Department.DepartmentDescription %>
    </div>
<h3 class="header">List courses</h3>


    <% foreach (var item in Model) { %>
       
    <table id="table1" style="width:100%;border: solid 1px gray; padding:0px;border-collapse:collapse;word-wrap: normal">
        <tr>
            <td class="style1" colspan="3">
                <%= Html.Encode(item.Department.Faculty.FacultyName) %></td>
            <td class="style1">
            </td>
            <td class="style1">
            </td>
            <td class="style14" rowspan="3">
                <%= Html.ActionLink("Apply", "Apply", "Course", new { id = item.CourseID }, new { @class = "btn" })%></td>
        </tr>
        <tr class="style7" style=" border-left: solid 1px gray;">
            <td class="style8">
                Code
            </td>
            <td class="style9">
                Level</td>
            <td class="style10">
                Faculty</td>
            <td class="style11">
                Capicity</td>
            <td class="style12" style="min-width: 70px">
                Fee (USD)</td>
        </tr>
        <tr style=" border-left: solid 1px gray;">
            <td class="style2">
               FDRG<%= Html.Encode(item.CourseID) %></td>
            <td class="style3 left-border">
               <%= Html.Encode(item.CourseName) %></td>
            <td class="style4 left-border">
                <%= Html.Encode(item.Department.DepartmentName) %></td>
            <td class="style6 left-border">
               <%= Html.Encode(item.CourseCapicity) %></td>
            <td class="style13 left-border">
               <%= Html.Encode(item.CourseFee) %> $</td>
        </tr>
    </table><br/>
  
    <% } %>

   

   

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptIncludePlaceHolder" runat="server">
    <style type="text/css">
        .left-border{   border-left: solid 1px gray}
        .style1
        {
            height: 22px;
            background-color: dodgerblue;
            color:White;
            font-weight:bold;
          
        }
        .style2
        {
            width: 65px;
        }
        .style3
        {
            width: 162px;
        }
        .style4
        {
            width: 60%;
        }
        .style6
        {
            width: 52px;
            text-align: right;
        }
        .style7
        {
            background-color: #CCCCCC;
            font-size: 11px;
            color: #663300;
          
        }
        .style8
        {
            width: 65px;
            height: 16px;
        }
        .style9
        {
            width: 162px;
            height: 16px;
        }
        .style10
        {
            width: 60%;
            height: 16px;
        }
        .style11
        {
            width: 52px;
            height: 16px;
        }
        .style12
        {
            width: 100px;
           
        }
        .style13
        {
            text-align: right;
        }
        .style14
        {
            background-color: dodgerblue;
            color: White;
            font-weight: bold;
        }
    </style>
    
  
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="HeaderContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="MenuContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="Sidebar1ContentPlaceHolder" runat="server">
</asp:Content>

